home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Software Dispatch
/
Apple Software Dispatch.iso
/
Software Dispatch Files
/
Super Munchers
/
Sample Application
/
Sample Application.rsrc
/
CODE_9_game.txt
< prev
next >
Wrap
Text File
|
1993-06-23
|
19KB
|
345 lines
# near model CODE resource
# jump table entries: 1720-1722 (3 of them)
fn00000000:
00000000 4E56 FFFC link A6, -0x0004
00000004 2F07 move.l -[A7], D7
00000006 3D7C 0012 FFFC move.w [A6 - 0x4], 0x12
0000000C 3D7C 006E FFFE move.w [A6 - 0x2], 0x6E /* 'n' */
00000012 700C moveq.l D0, 0x0C
00000014 2F00 move.l -[A7], D0
00000016 7200 moveq.l D1, 0x00
00000018 2F01 move.l -[A7], D1
0000001A 4EAD 0502 jsr [A5 + 0x502 /* export_156 */]
0000001E 206D FA0A movea.l A0, [A5 - 0x5F6]
00000022 A02B syscall EmptyHandle
00000024 2F2E FFFC move.l -[A7], [A6 - 0x4]
00000028 700C moveq.l D0, 0x0C
0000002A 2F00 move.l -[A7], D0
0000002C 7200 moveq.l D1, 0x00
0000002E 2F01 move.l -[A7], D1
00000030 4EAD 0512 jsr [A5 + 0x512 /* export_158 */]
00000034 3D7C 014A FFFE move.w [A6 - 0x2], 0x14A
0000003A 1E2D DDFA move.b D7, [A5 - 0x2206]
0000003E 1B7C 0001 DDFA move.b [A5 - 0x2206], 0x1
00000044 700C moveq.l D0, 0x0C
00000046 2F00 move.l -[A7], D0
00000048 7200 moveq.l D1, 0x00
0000004A 2F01 move.l -[A7], D1
0000004C 4EAD 0502 jsr [A5 + 0x502 /* export_156 */]
00000050 206D FA0A movea.l A0, [A5 - 0x5F6]
00000054 A02B syscall EmptyHandle
00000056 2F2E FFFC move.l -[A7], [A6 - 0x4]
0000005A 700C moveq.l D0, 0x0C
0000005C 2F00 move.l -[A7], D0
0000005E 7200 moveq.l D1, 0x00
00000060 2F01 move.l -[A7], D1
00000062 4EAD 0512 jsr [A5 + 0x512 /* export_158 */]
00000066 1B47 DDFA move.b [A5 - 0x2206], D7
0000006A 700C moveq.l D0, 0x0C
0000006C 2F00 move.l -[A7], D0
0000006E 7200 moveq.l D1, 0x00
00000070 2F01 move.l -[A7], D1
00000072 4EAD 0502 jsr [A5 + 0x502 /* export_156 */]
00000076 206D FA0A movea.l A0, [A5 - 0x5F6]
0000007A A02B syscall EmptyHandle
0000007C 3D7C 0060 FFFC move.w [A6 - 0x4], 0x60 /* '`' */
00000082 3D7C 0090 FFFE move.w [A6 - 0x2], 0x90
00000088 2F2E FFFC move.l -[A7], [A6 - 0x4]
0000008C 700C moveq.l D0, 0x0C
0000008E 2F00 move.l -[A7], D0
00000090 7201 moveq.l D1, 0x01
00000092 2F01 move.l -[A7], D1
00000094 4EAD 0512 jsr [A5 + 0x512 /* export_158 */]
00000098 3D7C 0129 FFFE move.w [A6 - 0x2], 0x129
0000009E 2F2E FFFC move.l -[A7], [A6 - 0x4]
000000A2 700C moveq.l D0, 0x0C
000000A4 2F00 move.l -[A7], D0
000000A6 7202 moveq.l D1, 0x02
000000A8 2F01 move.l -[A7], D1
000000AA 4EAD 0512 jsr [A5 + 0x512 /* export_158 */]
000000AE 3D7C 00B5 FFFC move.w [A6 - 0x4], 0xB5
000000B4 3D7C 004A FFFE move.w [A6 - 0x2], 0x4A /* 'J' */
000000BA 2F2E FFFC move.l -[A7], [A6 - 0x4]
000000BE 700C moveq.l D0, 0x0C
000000C0 2F00 move.l -[A7], D0
000000C2 7204 moveq.l D1, 0x04
000000C4 2F01 move.l -[A7], D1
000000C6 4EAD 0512 jsr [A5 + 0x512 /* export_158 */]
000000CA 3D7C 00D9 FFFE move.w [A6 - 0x2], 0xD9
000000D0 2F2E FFFC move.l -[A7], [A6 - 0x4]
000000D4 700C moveq.l D0, 0x0C
000000D6 2F00 move.l -[A7], D0
000000D8 7203 moveq.l D1, 0x03
000000DA 2F01 move.l -[A7], D1
000000DC 4EAD 0512 jsr [A5 + 0x512 /* export_158 */]
000000E0 3D7C 0171 FFFE move.w [A6 - 0x2], 0x171
000000E6 2F2E FFFC move.l -[A7], [A6 - 0x4]
000000EA 700C moveq.l D0, 0x0C
000000EC 2F00 move.l -[A7], D0
000000EE 7205 moveq.l D1, 0x05
000000F0 2F01 move.l -[A7], D1
000000F2 4EAD 0512 jsr [A5 + 0x512 /* export_158 */]
000000F6 2E2E FFF8 move.l D7, [A6 - 0x8]
000000FA 4E5E unlink A6
000000FC 4E75 rts
export_215:
000000FE 4E56 0000 link A6, 0
00000102 302E 000A move.w D0, [A6 + 0xA]
00000106 5340 subq.w D0, 1
00000108 6706 beq +0x8 /* 00000110 */
0000010A 5340 subq.w D0, 1
0000010C 6708 beq +0xA /* 00000116 */
0000010E 6036 bra +0x38 /* 00000146 */
label00000110:
00000110 4EBA 00C0 jsr [PC + 0xC0 /* 000001D2 */]
00000114 6030 bra +0x32 /* 00000146 */
label00000116:
00000116 302D DCA0 move.w D0, [A5 - 0x2360]
0000011A 48C0 ext.l D0
0000011C 5280 addq.l D0, 1
0000011E 7201 moveq.l D1, 0x01
00000120 C280 and.l D1, D0
00000122 3B41 DCA0 move.w [A5 - 0x2360], D1
00000126 598F subq.l A7, 4
00000128 3F3C 03EB move.w -[A7], 0x3EB
0000012C A949 syscall GetMenuHandle
0000012E 7002 moveq.l D0, 0x02
00000130 3F00 move.w -[A7], D0
00000132 1F2D DCA1 move.b -[A7], [A5 - 0x235F]
00000136 A945 syscall CheckItem
00000138 3B6D DCA0 DCA0 move.w [A5 - 0x2360], [A5 - 0x2360]
0000013E 4EAD 05BA jsr [A5 + 0x5BA /* export_179 */]
00000142 4EAD 059A jsr [A5 + 0x59A /* export_175 */]
label00000146:
00000146 4E5E unlink A6
00000148 4E75 rts
fn0000014A:
0000014A 4E56 0000 link A6, 0
0000014E 48E7 0108 movem.l -[A7], D7,A4
00000152 3E2E 000E move.w D7, [A6 + 0xE]
00000156 286E 0008 movea.l A4, [A6 + 0x8]
0000015A 0C47 0001 cmpi.w D7, 0x1
0000015E 6622 bne +0x24 /* 00000182 */
00000160 7000 moveq.l D0, 0x00
00000162 2F00 move.l -[A7], D0
00000164 4878 00FF push.l 0xFF
00000168 2F0C move.l -[A7], A4
0000016A 4EBA 01C6 jsr [PC + 0x1C6 /* 00000332 */]
0000016E 7004 moveq.l D0, 0x04
00000170 2F00 move.l -[A7], D0
00000172 7201 moveq.l D1, 0x01
00000174 2F01 move.l -[A7], D1
00000176 2F0C move.l -[A7], A4
00000178 4EAD 00F2 jsr [A5 + 0xF2 /* export_26 */]
0000017C 4FEF 0018 lea.l A7, [A7 + 0x18]
00000180 6046 bra +0x48 /* 000001C8 */
label00000182:
00000182 0C47 0005 cmpi.w D7, 0x5
00000186 6622 bne +0x24 /* 000001AA */
00000188 4878 00FF push.l 0xFF
0000018C 7000 moveq.l D0, 0x00
0000018E 2F00 move.l -[A7], D0
00000190 2F0C move.l -[A7], A4
00000192 4EBA 019E jsr [PC + 0x19E /* 00000332 */]
00000196 7004 moveq.l D0, 0x04
00000198 2F00 move.l -[A7], D0
0000019A 7202 moveq.l D1, 0x02
0000019C 2F01 move.l -[A7], D1
0000019E 2F0C move.l -[A7], A4
000001A0 4EAD 00F2 jsr [A5 + 0xF2 /* export_26 */]
000001A4 4FEF 0018 lea.l A7, [A7 + 0x18]
000001A8 601E bra +0x20 /* 000001C8 */
label000001AA:
000001AA 7000 moveq.l D0, 0x00
000001AC 2F00 move.l -[A7], D0
000001AE 2F00 move.l -[A7], D0
000001B0 2F0C move.l -[A7], A4
000001B2 4EBA 017E jsr [PC + 0x17E /* 00000332 */]
000001B6 7004 moveq.l D0, 0x04
000001B8 2F00 move.l -[A7], D0
000001BA 7201 moveq.l D1, 0x01
000001BC 2F01 move.l -[A7], D1
000001BE 2F0C move.l -[A7], A4
000001C0 4EAD 00F2 jsr [A5 + 0xF2 /* export_26 */]
000001C4 4FEF 0018 lea.l A7, [A7 + 0x18]
label000001C8:
000001C8 4CEE 1080 FFF8 movem.l D7,A4, [A6 - 0x8]
000001CE 4E5E unlink A6
000001D0 4E75 rts
export_216:
fn000001D2:
000001D2 4E56 FFEE link A6, -0x0012
000001D6 48E7 0308 movem.l -[A7], D6,D7,A4
000001DA 7E01 moveq.l D7, 0x01
000001DC 4246 clr.w D6
000001DE 4878 09F7 push.l 0x9F7
000001E2 4EAD 0102 jsr [A5 + 0x102 /* export_28 */]
000001E6 2840 movea.l A4, D0
000001E8 48C7 ext.l D7
000001EA 2F07 move.l -[A7], D7
000001EC 2F0C move.l -[A7], A4
000001EE 4EBA FF5A jsr [PC - 0xA6 /* 0000014A */]
000001F2 2F0C move.l -[A7], A4
000001F4 7005 moveq.l D0, 0x05
000001F6 3F00 move.w -[A7], D0
000001F8 486E FFEE pea.l [A6 - 0x12]
000001FC 486E FFF0 pea.l [A6 - 0x10]
00000200 486E FFF4 pea.l [A6 - 0xC]
00000204 A98D syscall GetDialogItem/GetDItem
00000206 2F0C move.l -[A7], A4
00000208 7005 moveq.l D0, 0x05
0000020A 3F00 move.w -[A7], D0
0000020C 3F2E FFEE move.w -[A7], [A6 - 0x12]
00000210 486D 06EA pea.l [A5 + 0x6EA /* export_217 */]
00000214 486E FFF4 pea.l [A6 - 0xC]
00000218 A98E syscall SetDialogItem/SetDItem
0000021A 2F0C move.l -[A7], A4
0000021C 48C7 ext.l D7
0000021E 2F07 move.l -[A7], D7
00000220 A918 syscall SetWRefCon
00000222 4FEF 000C lea.l A7, [A7 + 0xC]
label00000226:
00000226 7000 moveq.l D0, 0x00
00000228 2F00 move.l -[A7], D0
0000022A 486E FFEE pea.l [A6 - 0x12]
0000022E A991 syscall ModalDialog
00000230 302E FFEE move.w D0, [A6 - 0x12]
00000234 5340 subq.w D0, 1
00000236 670A beq +0xC /* 00000242 */
00000238 5340 subq.w D0, 1
0000023A 670C beq +0xE /* 00000248 */
0000023C 5340 subq.w D0, 1
0000023E 670C beq +0xE /* 0000024C */
00000240 600E bra +0x10 /* 00000250 */
label00000242:
00000242 3007 move.w D0, D7
00000244 5247 addq.w D7, 1
00000246 6008 bra +0xA /* 00000250 */
label00000248:
00000248 7C01 moveq.l D6, 0x01
0000024A 6004 bra +0x6 /* 00000250 */
label0000024C:
0000024C 3007 move.w D0, D7
0000024E 5347 subq.w D7, 1
label00000250:
00000250 4A46 tst.w D6
00000252 6636 bne +0x38 /* 0000028A */
00000254 48C7 ext.l D7
00000256 2F07 move.l -[A7], D7
00000258 2F0C move.l -[A7], A4
0000025A 4EBA FEEE jsr [PC - 0x112 /* 0000014A */]
0000025E 2F0C move.l -[A7], A4
00000260 48C7 ext.l D7
00000262 2F07 move.l -[A7], D7
00000264 A918 syscall SetWRefCon
00000266 486E FFFC pea.l [A6 - 0x4]
0000026A A874 syscall GetPort
0000026C 2F0C move.l -[A7], A4
0000026E A873 syscall SetPort
00000270 2F0C move.l -[A7], A4
00000272 A922 syscall BeginUpdate
00000274 486C 0010 pea.l [A4 + 0x10]
00000278 A8A3 syscall EraseRect
0000027A 2F0C move.l -[A7], A4
0000027C A923 syscall EndUpdate
0000027E 2F0C move.l -[A7], A4
00000280 A981 syscall DrawDialog
00000282 2F2E FFFC move.l -[A7], [A6 - 0x4]
00000286 A873 syscall SetPort
00000288 504F addq.w A7, 8
label0000028A:
0000028A 4A46 tst.w D6
0000028C 6798 beq -0x66 /* 00000226 */
0000028E 2F0C move.l -[A7], A4
00000290 A983 syscall DisposeDialog
00000292 4CEE 10C0 FFE2 movem.l D6,D7,A4, [A6 - 0x1E]
00000298 4E5E unlink A6
0000029A 4E75 rts
export_217:
0000029C 4E56 FFF8 link A6, -0x0008
000002A0 48E7 0118 movem.l -[A7], D7,A3,A4
000002A4 266E 000A movea.l A3, [A6 + 0xA]
000002A8 41EE FFF8 lea.l A0, [A6 - 0x8]
000002AC 43EB 0010 lea.l A1, [A3 + 0x10]
000002B0 20D9 move.l [A0]+, [A1]+
000002B2 20D9 move.l [A0]+, [A1]+
000002B4 3D7C 0104 FFFC move.w [A6 - 0x4], 0x104
000002BA 486E FFF8 pea.l [A6 - 0x8]
000002BE A8A3 syscall EraseRect
000002C0 598F subq.l A7, 4
000002C2 2F0B move.l -[A7], A3
000002C4 A917 syscall GetWRefCon
000002C6 201F move.l D0, [A7]+
000002C8 3E00 move.w D7, D0
000002CA 598F subq.l A7, 4
000002CC 3007 move.w D0, D7
000002CE D07C 1585 add.w D0, 0x1585
000002D2 3F00 move.w -[A7], D0
000002D4 A9BC syscall GetPicture
000002D6 285F movea.l A4, [A7]+
000002D8 200C move.l D0, A4
000002DA 6614 bne +0x16 /* 000002F0 */
000002DC 486D D89A pea.l [A5 - 0x2766]
000002E0 558F subq.l A7, 2
000002E2 A9AF syscall ResError
000002E4 301F move.w D0, [A7]+
000002E6 48C0 ext.l D0
000002E8 2F00 move.l -[A7], D0
000002EA 4EAD 01BA jsr [A5 + 0x1BA /* export_51 */]
000002EE 504F addq.w A7, 8
label000002F0:
000002F0 204C movea.l A0, A4
000002F2 A04A syscall HNoPurge
000002F4 2054 movea.l A0, [A4]
000002F6 43EE FFF8 lea.l A1, [A6 - 0x8]
000002FA 5488 addq.l A0, 2
000002FC 22D8 move.l [A1]+, [A0]+
000002FE 22D8 move.l [A1]+, [A0]+
00000300 486E FFF8 pea.l [A6 - 0x8]
00000304 7015 moveq.l D0, 0x15
00000306 3F00 move.w -[A7], D0
00000308 7206 moveq.l D1, 0x06
0000030A 3F01 move.w -[A7], D1
0000030C A8A8 syscall OffsetRect
0000030E 2F0C move.l -[A7], A4
00000310 486E FFF8 pea.l [A6 - 0x8]
00000314 A8F6 syscall DrawPicture
00000316 204C movea.l A0, A4
00000318 A049 syscall HPurge
0000031A 0C47 0003 cmpi.w D7, 0x3
0000031E 6604 bne +0x6 /* 00000324 */
00000320 4EBA FCDE jsr [PC - 0x322 /* 00000000 */]
label00000324:
00000324 4CEE 1880 FFEC movem.l D7,A3,A4, [A6 - 0x14]
0000032A 4E5E unlink A6
0000032C 205F movea.l A0, [A7]+
0000032E 5C4F addq.w A7, 6
00000330 4ED0 jmp [A0]
fn00000332:
00000332 4E56 FFF2 link A6, -0x000E
00000336 2F0C move.l -[A7], A4
00000338 286E 0008 movea.l A4, [A6 + 0x8]
0000033C 2F0C move.l -[A7], A4
0000033E 7001 moveq.l D0, 0x01
00000340 3F00 move.w -[A7], D0
00000342 486E FFF2 pea.l [A6 - 0xE]
00000346 486E FFF4 pea.l [A6 - 0xC]
0000034A 486E FFF8 pea.l [A6 - 0x8]
0000034E A98D syscall GetDialogItem/GetDItem
00000350 2F2E FFF4 move.l -[A7], [A6 - 0xC]
00000354 3F2E 0012 move.w -[A7], [A6 + 0x12]
00000358 A95D syscall HiliteControl
0000035A 2F0C move.l -[A7], A4
0000035C 7003 moveq.l D0, 0x03
0000035E 3F00 move.w -[A7], D0
00000360 486E FFF2 pea.l [A6 - 0xE]
00000364 486E FFF4 pea.l [A6 - 0xC]
00000368 486E FFF8 pea.l [A6 - 0x8]
0000036C A98D syscall GetDialogItem/GetDItem
0000036E 2F2E FFF4 move.l -[A7], [A6 - 0xC]
00000372 3F2E 000E move.w -[A7], [A6 + 0xE]
00000376 A95D syscall HiliteControl
00000378 286E FFEE movea.l A4, [A6 - 0x12]
0000037C 4E5E unlink A6
0000037E 4E75 rts